package com.chapter01exercise.homework03;

/**
 * @Author 小闽
 * @Date 2024/8/16 9:01
 * @PackageName: com.chapter01exercise.homework03
 * @ClassName: Professor
 * @Description: 教授类
 * @Version 1.0
 */
public class Professor extends Teacher {
    private double level;
    public Professor(String name, int age, String post, double salary, double level) {
        super(name, age, post, salary);
        this.level = level;
    }

    public double getLevel() {
        return level;
    }

    public void setLevel(double level) {
        this.level = level;
    }

    @Override
    public void  introduce() {
        System.out.println("我是教授...");
        super.introduce();
    }
}
